package com.yuyue.springFramework.note01.entity;

/**
 * 创建一个需实例化的类
 */
public class ClassEntity {
    private String name;
    private int age;

    //set、get和toString方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "ClassEntity{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
